package com.mall.order.model.dto;

import com.mall.common.group.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@Setter
@Getter
@ApiModel(description = "创建订单-商品信息")
public class AppOrderItemDto {
	
	@ApiModelProperty(value = "商品ID", required = true)
	@NotNull(message = "商品ID不能为空", groups = ValidGroup.Insert.class)
	private Long goodsId;

	
	@ApiModelProperty(value = "商品数量", required = true)
	@NotNull(message = "商品数量不能为空", groups = ValidGroup.Insert.class)
	private Long quantity;

	/** 商品规格id */
	private Long specsId;

	/** 规格标志（0代表单规格 1代表多规格） */
	private String specsFlag;

}
